#include "StdAfx.h"
#include "EFDLogTxt.h"


EFDLogTxt::EFDLogTxt(void)
{
}

EFDLogTxt::EFDLogTxt(wstring workdir)
{
	this->workdir = workdir;
	OutputDebugStringW(L"\r\nGet work Directory:");
	OutputDebugStringW(this->workdir.c_str());
	OutputDebugStringW(L"\r\n");	

	GetLogTxt(this->workdir);
	//RenameLogTxt();
}
EFDLogTxt::~EFDLogTxt(void)
{
}

int EFDLogTxt::GetLogTxt(wstring workdir)
{
	for(int i = 0;i < 2;i++)
	{
		struct LogTxtFile * head = HeadCreate();
		LogTxtfind(i, head, (WCHAR *)workdir.c_str());
		LogTxtRename(head, i, (WCHAR *)workdir.c_str());
	}
	return 0;
}

//int EFDLogTxt::RenameLogTxt(void)
//{
//	return 0;
//}
